//
//  SEVessel.h
//  Space Explorer
//
//  Created by Yann Blaudin de Thé on 17/04/13.
//  Copyright (c) 2013 TeaTime. All rights reserved.
//

#ifndef __Space_Explorer__SEVessel__
#define __Space_Explorer__SEVessel__

#include "irrlicht.h"

#include "SEPlanet.h"
#include "SEMisc.h"
#include "SEClock.h"


class SEVessel {
private:
    irr::core::stringw _nom_aff;
    
    irr::scene::IAnimatedMeshSceneNode *_irr_node;
    
    irr::IrrlichtDevice *_irr_device;
    
    vec3d _position, _velocity;
    
    SEPlanet* _attractor;
    
public:
    SEVessel(irr::IrrlichtDevice *device, const irr::core::stringw& disp_name, irr::scene::IAnimatedMesh* mesh);
    ~SEVessel();
    
    void update(SEClock &ck, const vec3d& cam_pos);
    
    irr::scene::IAnimatedMeshSceneNode* getIrrNode();
    
};

#endif /* defined(__Space_Explorer__SEVessel__) */
